package cn.admin.remoting.serialize;

import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;

public interface CustomSerialization<T> {

   void serialize(T msg, byte protocol, OutputStream out) throws IOException;

   T deserialize(InputStream input, byte protocol) throws IOException;

}
